package openbang.account.service.entity;


import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


import com.google.gwt.user.client.rpc.IsSerializable;

import java.io.Serializable;
import java.util.Date;


/**
 * 调查子项定义
 * 
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DiaoChaItem implements IsSerializable,Serializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	@Persistent
	private String code;

	@Persistent
	private String projectCode = "";
	
	@Persistent
	private int viewOrder = 0; 
	
	@Persistent
	private String title;

	@Persistent
	private String description;

	/**
	 * 统计数
	 */
	@Persistent
	private Long countNum = 0L;

	/**
	 * 百分比
	 */
	@NotPersistent
	private float rate = 0.0f;
	
	@Persistent
	private Date updTime= new Date();
	
    public DiaoChaItem() {
    }
   
	public DiaoChaItem(String code , String projectCode , int viewOrder, String title, String description) {
		super();
		this.projectCode = projectCode;
		this.code = code;
		this.viewOrder = viewOrder;
		this.title = title;
		this.description = description;
	}



	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	
	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getCountNum() {
		return countNum;
	}

	public void setCountNum(Long countNum) {
		this.countNum = countNum;
	}

	
	public float getRate() {
		return rate;
	}

	public void setRate(float rate) {
		this.rate = rate;
	}

	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}

	public int getViewOrder() {
		return viewOrder;
	}

	public void setViewOrder(int viewOrder) {
		this.viewOrder = viewOrder;
	}
	
}